//
//  YXHomeViewController.swift
//  yanXiangWeiBo
//
//  Created by 颜祥 on 15/12/15.
//  Copyright © 2015年 yanxiang. All rights reserved.
//

import UIKit

class YXHomeViewController: YXBaseViewController
{

    
    

    override func viewDidLoad() {
        super.viewDidLoad()
        
        // 添加导航条两边的按钮
         addNavigationBarButton()
        

        
        
    }
    
    private func addNavigationBarButton()
    {
        let btn = UIButton(type: UIButtonType.Custom)
        
        let image = UIImage(named: "navigationbar_friendsearch")
        btn.setBackgroundImage(UIImage(named: "navigationbar_friendsearch"), forState: UIControlState.Normal)
        btn.setBackgroundImage(UIImage(named: "navigationbar_friendsearch_highlighted"), forState: UIControlState.Highlighted)
        
        btn.bounds = CGRectMake(0, 0, image!.size.width, (image!.size.height))
        
        let friendsearchBtn = UIBarButtonItem(customView: btn)
        
        self.navigationItem.leftBarButtonItem = friendsearchBtn
        
    }
    
    

    

    // MARK: - Table view data source

    override func numberOfSectionsInTableView(tableView: UITableView) -> Int {
        // #warning Incomplete implementation, return the number of sections
        return 0
    }

    override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        // #warning Incomplete implementation, return the number of rows
        return 0
    }

    /*
    override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCellWithIdentifier("reuseIdentifier", forIndexPath: indexPath)

        // Configure the cell...

        return cell
    }*/



}
